
import wx
import os
from frame.mainframe import MainFrame

class EasyNoteApp(wx.App):
    def OnInit(self):
        self.frame=MainFrame(None, wx.ID_ANY, 'EasyNote', size=(1000,700))
        self.frame.Show()
        #self.frame.InitiateFrame()
        self.SetTopWindow(self.frame)
        return True
    
    def OnExit(self):
        #self.frame.OnExit(None)
        pass

if __name__ == '__main__':
    os.linesep = '\r\n'
    app = EasyNoteApp(False) #use this for debug
    app.MainLoop()